﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Web.Routing;
using ASPItalia.ModelVirtualCasting.Web.Tests.Utils;

namespace ASPItalia.ModelVirtualCasting.Web.Tests.Routes
{
    [TestClass]
    public class ProfilesRouteTest : RouteTestBase
    {
        [TestMethod]
        public void ProfilesRoute_Empty()
        {
            RouteData routeData = this.GetRouteData("~/Candidate");

            RouteTestHelper.AssertRoute(routeData, 
                "Candidate", "Create", new { nickname = string.Empty });
        }

        [TestMethod]
        public void ProfilesRoute_Nickname()
        {
            RouteData routeData = this.GetRouteData("~/Profile/Cradle");

            RouteTestHelper.AssertRoute(routeData,
                "Person", "Profile", new { nickname = "Cradle" });
        }
    }
}
